package com.qf.service.impl;

//import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.entity.Order;
import com.qf.mapper.OrderMapper;
import com.qf.service.OrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Override
    public int addOrder(Order order,Integer tabIndex) {
        return baseMapper.addOrder(order,tabIndex);
    }

    // 插入2103-shop-order-2库中
//    @DS("order-2") // 这里写的组名，写死的
    @Override
    public int addOrder2(Order order,Integer tabIndex) {
        return baseMapper.addOrder2(order,tabIndex);
    }
}
